<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
      DTB
      <a href="<c:url value="/productsAdmin.do" />">Products Admin</a>

        <select id="productSelector">
          <option value="-1">Select Product</option>
          <c:if test="${not empty productSelectorList}">
          <c:forEach items="${productSelectorList}" var="product">
          <option value="${product.id}" <c:if test="${sessionScope['productId']==product.id}">selected="selected"</c:if>>${product.name}</option>
          </c:forEach>
          </c:if>
        </select>

      <script type="text/javascript">
      function changeProducts() {
          var url =  '<c:url value="/selectProduct.do" />?productId=' + $('productSelector').value;
          location.href = url;
      }
      $('productSelector').observe('change', changeProducts);
      </script>